Telegram Group & Telegram Channel
Задача с кодом. Стоит ли так гнать?

Чтобы сократить время, проведенное в дороге, водители часто превышают установленные ограничения скорости.

Напишите функцию, которая будет высчитывать время, сэкономленное за счет превышения лимита скорости. Она будет принимать три числа — лимит скорости, среднюю скорость и расстояние, которое водитель проехал со средней скоростью.

Примечания:

- Скорость = расстояние / время
- Возвращаемое время должно быть в минутах, а не в часах.
- Скорость передается в км/ч, расстояние — в км.
- Сэкономленное время — разница между временем движения при скоростном лимите и при средней скорости.

Примеры:

time_saved(80, 90, 40) ➞ 3.3
time_saved(80, 90, 4000) ➞ 333.3
time_saved(80, 100, 40 ) ➞ 6.0
time_saved(80, 100, 10) ➞ 1.5

Решение на нашем сайте.

#задача #coding



tg-me.com/pythonist_ru/2417
Create:
Last Update:

Задача с кодом. Стоит ли так гнать?

Чтобы сократить время, проведенное в дороге, водители часто превышают установленные ограничения скорости.

Напишите функцию, которая будет высчитывать время, сэкономленное за счет превышения лимита скорости. Она будет принимать три числа — лимит скорости, среднюю скорость и расстояние, которое водитель проехал со средней скоростью.

Примечания:

- Скорость = расстояние / время
- Возвращаемое время должно быть в минутах, а не в часах.
- Скорость передается в км/ч, расстояние — в км.
- Сэкономленное время — разница между временем движения при скоростном лимите и при средней скорости.

Примеры:

time_saved(80, 90, 40) ➞ 3.3
time_saved(80, 90, 4000) ➞ 333.3
time_saved(80, 100, 40 ) ➞ 6.0
time_saved(80, 100, 10) ➞ 1.5

Решение на нашем сайте.

#задача #coding

BY Pythonist.ru - образование по питону


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/pythonist_ru/2417

View MORE
Open in Telegram


Pythonist ru образование по питону Telegram | DID YOU KNOW?

Date: |

Telegram and Signal Havens for Right-Wing Extremists

Since the violent storming of Capitol Hill and subsequent ban of former U.S. President Donald Trump from Facebook and Twitter, the removal of Parler from Amazon’s servers, and the de-platforming of incendiary right-wing content, messaging services Telegram and Signal have seen a deluge of new users. In January alone, Telegram reported 90 million new accounts. Its founder, Pavel Durov, described this as “the largest digital migration in human history.” Signal reportedly doubled its user base to 40 million people and became the most downloaded app in 70 countries. The two services rely on encryption to protect the privacy of user communication, which has made them popular with protesters seeking to conceal their identities against repressive governments in places like Belarus, Hong Kong, and Iran. But the same encryption technology has also made them a favored communication tool for criminals and terrorist groups, including al Qaeda and the Islamic State.

How Does Bitcoin Mining Work?

Bitcoin mining is the process of adding new transactions to the Bitcoin blockchain. It’s a tough job. People who choose to mine Bitcoin use a process called proof of work, deploying computers in a race to solve mathematical puzzles that verify transactions.To entice miners to keep racing to solve the puzzles and support the overall system, the Bitcoin code rewards miners with new Bitcoins. “This is how new coins are created” and new transactions are added to the blockchain, says Okoro.

Pythonist ru образование по питону from ua


Telegram Pythonist.ru - образование по питону
FROM USA